import unittest
from identity.models import Identity

class IdentityTests(unittest.TestCase):
    def test_get_by_url(self):
        id = Identity.get_by_url('http://test97229.myopenid.com/')
        self.assertEqual(id.url,'test97229.myopenid.com')
        id = Identity.get_by_url('test97229.myopenid.com/')
        self.assertEqual(id.url,'test97229.myopenid.com')

